package digui.test;

/**
 * @author cyt
 * @create 2020-05-29 15:11
 */

/**
 * 计算 斐波那契数列
 **/
public class Tb {

    public static void main(String[] args) {

        System.out.println(shulie(3));
    }

    public static int shulie(int n) {
        if(n == 0) {
            return 0;
        }
        if(n == 1) {
            return 1;
        } else {
            return shulie(n-1)+shulie(n-2);
        }
    }
}
